package org.kumas.sgrpc.remoting;

import org.kumas.sgrpc.common.URL;
import org.kumas.sgrpc.common.extension.Adaptive;
import org.kumas.sgrpc.common.extension.SPI;
import org.kumas.sgrpc.remoting.transport.dispatcher.AllDispatcher;

/**
 * @author KumasZhang
 * @version 1.0
 * @since 2021-07-13 14:33
 */
@SPI(AllDispatcher.NAME)
public interface Dispatcher {

    @Adaptive()
    ChannelHandler dispatch(ChannelHandler handler, URL url);

}
